package com.ruoyi.party.system.domain;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 发展对象信息登记对象 p_member_target
 * 
 * @author 黄宝康
 * @date 2021-04-20
 */
public class MemberTarget extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 发展对象编号 */
    @Excel(name = "发展对象编号")
    //@NotBlank(message = "发展对象编号不能为空")
    @Size(min = 0, max = 10, message = "发展对象编号长度不能超过10个字符")
    private String targetId;

    /** 发展对象姓名 */
    @Excel(name = "发展对象姓名")
    @NotBlank(message = "发展对象姓名不能为空")
    @Size(min = 0, max = 30, message = "发展对象姓名长度不能超过30个字符")
    private String targetName;

    /** 身份证号 */
    @Excel(name = "身份证号")
    @NotBlank(message = "身份证号不能为空")
    @Size(min = 0, max = 18, message = "身份证号长度不能超过18个字符")
    private String card;

    /** 出生年月日 */
    @Excel(name = "出生年月日")
    @NotBlank(message = "出生年月日不能为空")
    @Size(min = 0, max = 10, message = "出生年月日长度不能超过10个字符")
    private String birthday;

    /** 行政级别 */
    @Excel(name = "行政级别")
    @NotBlank(message = "行政级别不能为空")
    @Size(min = 0, max = 2, message = "行政级别长度不能超过2个字符")
    private String adminLevel;

    /** 确定为发展对象日期 */
    @Excel(name = "确定为发展对象日期")
    @NotBlank(message = "确定为发展对象日期不能为空")
    @Size(min = 0, max = 10, message = "确定为发展对象日期长度不能超过10个字符")
    private String targetTime;

    /** 所属党支部 */
    @Excel(name = "所属党支部")
    @NotBlank(message = "所属党支部不能为空")
    @Size(min = 0, max = 10, message = "所属党支部长度不能超过10个字符")
    private String orgId;

    /** 第一介绍人编号 */
    @Excel(name = "第一介绍人编号")
    @NotBlank(message = "第一介绍人编号不能为空")
    @Size(min = 0, max = 10, message = "第一介绍人编号长度不能超过10个字符")
    private String member1Id;

    /** 第二介绍人编号 */
    @Excel(name = "第二介绍人编号")
    @Size(min = 0, max = 10, message = "第二介绍人编号长度不能超过10个字符")
    private String member2Id;

    // 自定义字段
    private String orgName;
    private String member1Name;
    private String member2Name;
    
    
    
    public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public String getMember1Name() {
		return member1Name;
	}

	public void setMember1Name(String member1Name) {
		this.member1Name = member1Name;
	}

	public String getMember2Name() {
		return member2Name;
	}

	public void setMember2Name(String member2Name) {
		this.member2Name = member2Name;
	}

	public void setTargetId(String targetId) 
    {
        this.targetId = targetId;
    }

    public String getTargetId() 
    {
        return targetId;
    }
    public void setTargetName(String targetName) 
    {
        this.targetName = targetName;
    }

    public String getTargetName() 
    {
        return targetName;
    }
    public void setCard(String card) 
    {
        this.card = card;
    }

    public String getCard() 
    {
        return card;
    }
    public void setBirthday(String birthday) 
    {
        this.birthday = birthday;
    }

    public String getBirthday() 
    {
        return birthday;
    }
    public void setAdminLevel(String adminLevel) 
    {
        this.adminLevel = adminLevel;
    }

    public String getAdminLevel() 
    {
        return adminLevel;
    }
    public void setTargetTime(String targetTime) 
    {
        this.targetTime = targetTime;
    }

    public String getTargetTime() 
    {
        return targetTime;
    }
    public void setOrgId(String orgId) 
    {
        this.orgId = orgId;
    }

    public String getOrgId() 
    {
        return orgId;
    }
    public void setMember1Id(String member1Id) 
    {
        this.member1Id = member1Id;
    }

    public String getMember1Id() 
    {
        return member1Id;
    }
    public void setMember2Id(String member2Id) 
    {
        this.member2Id = member2Id;
    }

    public String getMember2Id() 
    {
        return member2Id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("targetId", getTargetId())
            .append("targetName", getTargetName())
            .append("card", getCard())
            .append("birthday", getBirthday())
            .append("adminLevel", getAdminLevel())
            .append("targetTime", getTargetTime())
            .append("orgId", getOrgId())
            .append("member1Id", getMember1Id())
            .append("member2Id", getMember2Id())
            .append("orgName", getOrgName())
            .append("member1Name", getMember1Name())
            .append("member2Name", getMember2Name())
            .toString();
    }
}
